<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>多个复选框</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h3>多个复选框使用时</h3>
        <input type="checkbox" id="jack" value="Jack" v-model="selected">
        <label for="jack">Jack</label>
        <input type="checkbox" id="john" value="John" v-model="selected">
        <label for="john">John</label>
        <input type="checkbox" id="mike" value="Mike" v-model="selected">
        <label for="mike">Mike</label>
        <p>Selected:{{selected}}</p>
    </div>
    

    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                selected:[]
            }
        })
    </script>
</body>
</html>